package cn.txauction.business.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.txauction.business.dao.IAuctionrecordDao;
import cn.txauction.business.dao.base.BaseDao;
import cn.txauction.modal.TxAuctionrecord;
import cn.txauction.modal.TxItem;

@Repository("auctionrecordDao")
public class AuctionrecordDaoImpl extends BaseDao<TxAuctionrecord> implements IAuctionrecordDao {

	@SuppressWarnings("unchecked")
	public List<TxAuctionrecord> findByItemAndUser(TxItem item, long memberid) {
		// TODO Auto-generated method stub
		List<TxAuctionrecord> list = getHibernateTemplate().find(	
				"from TxAuctionrecord ac where ac.fdMemberid=? and ac.txItem=?", 
				new Object[]{memberid, item});
		return list;
	}
	public List<TxAuctionrecord> findByUser(long memberid) {
		// TODO Auto-generated method stub
		return null;
	}
	
}
